package com.zhentao.model.pay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ad_membership_card
 */
@TableName(value ="ad_membership_card")
@Data
public class AdMembershipCard implements Serializable {
    /**
     * 商品表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 会员等级名称
     */
    @TableField(value = "membership_name")
    private String membershipName;

    /**
     * 会员价格
     */
    @TableField(value = "membership_price")
    private Integer membershipPrice;

    /**
     * 会员持续时间（按月）
     */
    @TableField(value = "membership_time")
    private Integer membershipTime;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField(value = "updated_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date updatedTime;

    /**
     * 会员介绍
     */
    @TableField(value = "membership_desc")
    private String membershipDesc;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
